The Love/Hate Relationship with the C Preprocessor: An Interview Study

نویسندگان

  • Flávio Medeiros
  • Christian Kästner
  • Márcio Ribeiro
  • Sarah Nadi
  • Rohit Gheyi
چکیده

The C preprocessor has received strong criticism in academia, among others regarding separation of concerns, error proneness, and code obfuscation, but is widely used in practice. Many (mostly academic) alternatives to the preprocessor exist, but have not been adopted in practice. Since developers continue to use the preprocessor despite all criticism and research, we ask how practitioners perceive the C preprocessor. We performed interviews with 40 developers, used grounded theory to analyze the data, and cross-validated the results with data from a survey among 202 developers, repository mining, and results from previous studies. In particular, we investigated four research questions related to why the preprocessor is still widely used in practice, common problems, alternatives, and the impact of undisciplined annotations. Our study shows that developers are aware of the criticism the C preprocessor receives, but use it nonetheless, mainly for portability and variability. Many developers indicate that they regularly face preprocessorrelated problems and preprocessor-related bugs. The majority of our interviewees do not see any current C-native technologies that can entirely replace the C preprocessor. However, developers tend to mitigate problems with guidelines, even though those guidelines are not enforced consistently. We report the key insights gained from our study and discuss implications for practitioners and researchers on how to better use the C preprocessor to minimize its negative impact. 1998 ACM Subject Classification D.3.4 Processors

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Love/Hate Relationship with the C Preprocessor: An Interview Study (Artifact)

This appendix presents detailed information about the research methods we used in the study, subject characterization, grounded theory process that we followed strictly, and the survey we performed in the study. It provides helpful data for understanding the subtler points of the companion paper and for reproducibility. 1998 ACM Subject Classification D.3.4 Processors

متن کامل

The Deeper the Love, the Deeper the Hate

Love and hate are basic human affects. Previous research has focused on the classification, functions, and other aspects of these two affects. However, few studies have been conducted on the relationship between love and hate. The present study investigated whether similarity within romantic partners was associated with greater feelings of love in the absence of betrayal, and greater hate induc...

متن کامل

Translation Technology Tools and Professional Translators’ Attitudes toward Them

Today technology is an integral part of professional translation; and it is generally assumed that translators’ attitudes toward translation technology tools influence their interaction with technology (Bundgaard, 2017). Therefore, the present two-phase study seeks to shed some light on what translation technology tools are and how professional translators feel toward them. The research method ...

متن کامل

Survey reveals physicians' love/hate relationship with technology.

Where you can find the survey reveals physicians love hate relationship with technology special issue health care easily? Is it in the book store? On-line book store? are you sure? Keep in mind that you will find the book in this site. This book is very referred for you because it gives not only the experience but also lesson. The lessons are very valuable to serve for you, that's not about who...

متن کامل

H-NS and RNA polymerase: a love-hate relationship?

Histone-like nucleoid structuring (H-NS) protein is a component of bacterial chromatin and influences gene expression both locally and on a global scale. Although H-NS is broadly considered a silencer of transcription, the mechanisms by which H-NS inhibits gene expression remain poorly understood. Here we discuss recent advances in the context of a 'love-hate' relationship between H-NS and RNA ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015